package com.rr.jvm.demo;

/**
 * @author RR
 * @date 2022/9/25 11:35
 */

/**
 * 类加载器是AppClassLoader
 * 父类加载器是ExtClassLoader
 * 父类加载器的父类是null，所以就是BootstrapClassLoader
 */
public class Demo5ClassLoaderTest {
    public static void main(String[] args) {
        System.out.println("ClassLodarDemo's ClassLoader is " + Demo5ClassLoaderTest.class.getClassLoader());
        System.out.println("The Parent of ClassLodarDemo's ClassLoader is " + Demo5ClassLoaderTest.class.getClassLoader().getParent());
        System.out.println("The GrandParent of ClassLodarDemo's ClassLoader is " + Demo5ClassLoaderTest.class.getClassLoader().getParent().getParent());
    }
}
